<?php

// use Illuminate\Http\Request;
use Illuminate\Routing\Router;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

// Route::middleware('auth:api')->get('/user', function (Request $request) {
//     return $request->user();
// });
Route::middleware('throttle:60,1')->namespace('Api')->group(function (Router $router) {

    $router->get('/data/market_status', 'DataController@marketStatus');
    $router->get('/data/bks_index', 'DataController@bksIndex');
    $router->get('/data/updated_at', 'DataController@updateDate');
    $router->get('/data/index_list', 'DataController@indexList');
    $router->get('/data/bks_list', 'DataController@bksList');
    
    $router->get('/data/bks_item', 'DataController@bksItem');

    $router->get('/data/bk_bond_list', 'DataController@bkBondList');
    
    $router->get('/data/tips', 'DataController@tips');

    $router->get('/data/bond_item', 'DataController@bondItem');
});